import request from '@/utils/request'

// 查询名片夹列表
export function listMpholder(query) {
  return request({
    url: '/bcard/mpholder/list',
    method: 'get',
    params: query
  })
}

// 查询名片夹详细
export function getMpholder(id) {
  return request({
    url: '/bcard/mpholder/' + id,
    method: 'get'
  })
}

// 新增名片夹
export function addMpholder(data) {
  return request({
    url: '/bcard/mpholder',
    method: 'post',
    data: data
  })
}

// 修改名片夹
export function updateMpholder(data) {
  return request({
    url: '/bcard/mpholder',
    method: 'put',
    data: data
  })
}

// 删除名片夹
export function delMpholder(id) {
  return request({
    url: '/bcard/mpholder/' + id,
    method: 'delete'
  })
}
